package util;

import org.apache.http.conn.ssl.DefaultHostnameVerifier;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;

import javax.net.ssl.SSLContext;

public class MySSLConnectionSocketFactory extends SSLConnectionSocketFactory {

    public MySSLConnectionSocketFactory(final SSLContext sslContext) {
        super(sslContext, ALLOW_ALL_HOSTNAME_VERIFIER);

        // TODO 配置https请求证书等问题
        SSLConnectionSocketFactory sslcsf = new SSLConnectionSocketFactory(sslContext,
                new String[] {"TLSv1"}, null,new DefaultHostnameVerifier());

    }

}
